package lanqiao;

import java.util.Scanner;

/**
 * Basic14 时间转换
 * http://lx.lanqiao.cn/problem.page?gpid=T54
 */
public class Basic14 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int[] hms = conversion(num);
        System.out.println(hms[0] + ":" + hms[1] + ":" + hms[2]);

    }
    public static int[] conversion(int seconds){
        int[] hms = new int[3];
        hms[0] = seconds / 3600;
        seconds %= 3600;
        hms[1] = seconds / 60;
        seconds %= 60;
        hms[2] = seconds;
        return hms;
     }
}
